#include "BasicBody.h"

Body::Body() {}
Body::~Body() {}
QPointF* Body::getPosition() {
	return position;
}

void Body::setPosition(QPointF* position) {
	this->position->setX(position->x());
	this->position->setY(position->y());
}

QPointF* Body::getVelocity() {
	return velocity;
}

void Body::setVelocity(QPointF* currentVelocity) {
	this->velocity->setX(currentVelocity->x());
	this->velocity->setY(currentVelocity->y());
}

float Body::getAngle() {
	return angle;
}

void Body::setMass(float mass) {
	this->mass = mass;
}

float Body::getMass() {
	return this->mass;
}

void Body::setId(int id) {
	this->id = id;
}
int Body::getId() {
	return this->id;
}

RectangleBody::RectangleBody(float w, float h) {
	this->setId(rand());
	this->width = w;
	this->height = h;
}

RectangleBody::~RectangleBody() {}
